﻿using ShoppingEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IShoppingBll
{
    public interface ICommodityTypeBll : IBaseBll<CommodityType>
    {
        /// <summary>
        /// 商品类型页面展示
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="count"></param>
        /// <param name="CategoryName"></param>
        /// <returns></returns>
        object GetCommodityTypePageList(int page, int limit, out int count, string CategoryName);


        /// <summary>
        /// 判断是否有相同的商品类型名称
        /// </summary>
        /// <param name="categoryName"></param>
        /// <returns></returns>
        bool IsHadCommodityType(string categoryName);

        /// <summary>
        /// 商品类别下拉选
        /// </summary>
        /// <returns></returns>
        object GetCommodityTypeOption();
    }
}
